package dome2;


public class Text {
    public static void main(String[] args) {
        //Dog dog = new Dog();
        Date date = new Date();
        date.setDate(2020,9,13);
    }
}

class Date {
    public int year;
    public int month;
    public int day;
    public void setDate(int year,int month,int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
}

class Dog {
    public String name;
    public String color;

    public void eat() {
        System.out.println(name + "吃狗粮");
    }
}

